import 'package:flutter/material.dart';

void main() {
  // 1. 运行应用程序。
  runApp(const MaterialApp(home: Main()));
}

class Main extends StatelessWidget {
  const Main({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(' 布局组件'),
        backgroundColor: Colors.red,
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          height: 100,
          color: Colors.amber,
          // child: Column(
          //   mainAxisAlignment: MainAxisAlignment.center, // 主轴
          //   crossAxisAlignment: CrossAxisAlignment.center, // 交叉轴
          //   children: [
          //     Image.network(
          //       'https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
          //       width: 200,
          //     ),
          //     Text('美妆效果嘎嘎不卡粉末面刷'),
          //     Text('¥99.90')
          //   ],
          // ),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Image.network(
                'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                height: 80,
              ),
              const Expanded(
                child: Text('茶水分离杯耐热隔热玻璃杯茶水分离杯耐热隔热玻璃杯茶水分离杯耐热隔热玻璃杯茶水分离杯耐热隔热玻璃杯'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
